<!-- 支付结果 -->
<template>
	<view class="PaymentResults">
		<view class="f-background width-height100 radius12 text-align">
			<!-- <image class="results" src="@/static/icons/gous.png" mode=""></image> -->
			<view class="font-weight-600 color3 size-36">支付成功</view>
			<view class="alls font-weight-400 color6 size-32">
				本次加油领火饭票为你节省<text class="color font-weight-600">¥33.2</text>
			</view>
			<u-button type="primary" :plain="true"
				:customStyle="{width: '342rpx',height: '84rpx',margin: '0 auto 36rpx',borderRadius: '100rpx'}"
				color="#DFDFDF" @click="onJumpPage('details')">
				<text class="color3 font-weight-600 size-32">查看订单</text>
			</u-button>
		</view>
	</view>
</template>

<script>
	const url = {
		details: '/packageGas/orders/details', // 订单详情
	}
	export default {
		data() {
			return {

			}
		},
		methods: {
			onJumpPage(name, parName, par) {
				let urlData = url[name]
				if (par) urlData = `${urlData}?${parName}=${par}` // 有参数
				uni.redirectTo({
					url: urlData
				});
			}
		}
	}
</script>

<style lang="scss">
	.PaymentResults {
		padding: 16rpx;
		width: 100%;
		height: 100vh;
		box-sizing: border-box;

		.results {
			width: 104rpx;
			height: 104rpx;
			margin: 112rpx auto 40rpx;
		}

		.alls {
			margin: 36rpx 0 102rpx;
		}
	}
</style>